package com.compass.framework.model;

import android.text.TextUtils;

import java.io.Serializable;

/**
 * Description：
 * Date:2024/10/21 9:28
 */
public class Products implements Serializable {

    /**
     * channel :
     * dosage :
     * frequency :
     * id :
     * num : 0
     * price : 0
     * remarks :
     */

    //传的数据
    private String channel;//给药途径
    private String dosage; //单次药量(单位)
    private String unitNum; //	单次药量数量
    private String days; //	开药天数
    private String frequency;//给药频率
    private String id;//产品ID
    private String num;//数量
    private String price;//药品价格
    private String remarks;//备注
    private int dosageIndex;
    private int frequencyIndex;
    private int channelIndex;
    private int allergyIndex;

    //接收多的字段
    private String spec;
    private String unit;
    private String coverImg;
    private String name;
    private String smallestUnit;




    public String getSmallestUnit() {
        return smallestUnit;
    }

    public void setSmallestUnit(String smallestUnit) {
        this.smallestUnit = smallestUnit;
    }

    public String getDays() {
        return days;
    }

    public void setDays(String days) {
        this.days = days;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getCoverImg() {
        return coverImg;
    }

    public void setCoverImg(String coverImg) {
        this.coverImg = coverImg;
    }

    public String getName() {
        if (TextUtils.isEmpty(name)){
            return "";
        }
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber_days() {
        return days;
    }

    public void setNumber_days(String number_days) {
        this.days = number_days;
    }

    public int getDosageIndex() {
        return dosageIndex;
    }

    public void setDosageIndex(int dosageIndex) {
        this.dosageIndex = dosageIndex;
    }

    public int getFrequencyIndex() {
        return frequencyIndex;
    }

    public void setFrequencyIndex(int frequencyIndex) {
        this.frequencyIndex = frequencyIndex;
    }

    public int getChannelIndex() {
        return channelIndex;
    }

    public void setChannelIndex(int channelIndex) {
        this.channelIndex = channelIndex;
    }

    public int getAllergyIndex() {
        return allergyIndex;
    }

    public void setAllergyIndex(int allergyIndex) {
        this.allergyIndex = allergyIndex;
    }

    public String getUnitNum() {
        return unitNum;
    }

    public void setUnitNum(String unitNum) {
        this.unitNum = unitNum;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public String getDosage() {
        return dosage;
    }

    public void setDosage(String dosage) {
        this.dosage = dosage;
    }

    public String getFrequency() {
        return frequency;
    }

    public void setFrequency(String frequency) {
        this.frequency = frequency;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
}
